package base

import (
	"gitee.com/dayu1985/framework/context"
)

type RouteContext struct {
	Context    *context.Configuration
	Privilege  *Privilege
}

//所有路由的集合
var routers = []func(*RouteContext){}

//以下各分组的路由注册路口
func Register(f func(*RouteContext)) {
	routers = append(routers, f)
}
